const flag = true;

const articleTem = 1;
function temARc() {
  if (articleTem === 1) {
    return (
      <div>
        <div>if的原生渲染--------1</div>
      </div>
    );
  } else {
    return (
      <div>
        <div>if的原生渲染--------22</div>
      </div>
    );
  }
}
function rendershow() {
  return (
    <div className={"list"}>
      条件渲染
      <p>
        {/* {逻辑运算} */}
        {flag && <span>show--------</span>}

        {/* 三元表达式运算 */}
        {flag ? <span>三元表达式运算</span> : <span>三元表达式运算flag</span>}
      </p>
      {/* if原生 */}
      {temARc()}
    </div>
  );
}

export default rendershow;
